import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

import {ElMessage} from 'element-plus'


import App from './App.vue'
import router from './router'

import vue3SeamlessScroll from "vue3-seamless-scroll";


const app = createApp(App)
app.provide('$message', ElMessage)
app.provide('$is_test', 1)


const pinia = createPinia()
const persist = createPersistedState()
pinia.use(persist)


app.use(pinia)
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(vue3SeamlessScroll);

app.mount('#app')
